﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

// Reviewed
#pragma once

#include "GcmpModelInterface.h"
#include "IEventArgs.h"
#include "IGraphicsNodeReference.h"

namespace gcmp
{
    class IDocument;

    enum class HighlightChangedEventType : int32_t
    {
        Undefine = 0,
        Add = 1,
        Set = 2,
        Delete = 3,
    };

    /// \brief 高亮变化事件参数
    class GCMP_MODEL_INTERFACE_EXPORT IHighlightChangeEventArgs : public IEventArgs
    {
        DEFINE_CAST_DERIVED(gcmp::IHighlightChangeEventArgs, gcmp::IEventArgs);
        /// \brief 获取高亮变化时选中的实体节点
        /// \param 无
        /// \return 返回包含节点指针的数组
        virtual const std::vector<const IGraphicsNodeReference*>& GetGraphicsNodeReferences() const = 0;
        /// \brief 获取事件类型
        /// \param 无
        /// \return 事件类型
        virtual HighlightChangedEventType GetEventType() const = 0;
    };
}



